package god;

public class J05Ex36ComputeTime {
	public static void main(String[] args) {
		int time1, time2, time3;
		String result = "";
		// 86400 = 하루
		// 3600 = 1시간
		// 60 = 1분
		time1 = 1234567890;
		time2 = 12345;
		time3 = 67890;
		
		int day2sec = 86400;
		int hour2sec = 3600;
		int min2sec = 60;
		result += "1234567890초는 " + (time1 / day2sec) + "일" + ( time1 % day2sec ) / hour2sec + "시" +(( time1 % day2sec ) % hour2sec) / min2sec + "분" 
		+((( time1 % day2sec ) % hour2sec) % min2sec) + "초" +'\n';
		result += "12345초는 " + (time2 / hour2sec) + "시간" + (time2 % hour2sec) / min2sec + "분"  + ((time2 % hour2sec) % min2sec) / 60 + "초" + '\n';
		result += "67890초는 " + (time3 / min2sec) + "분" + (time3 % min2sec) / 60 + "초" + '\n';
		
		System.out.println( result );
	}

}
